import request from '@/util/request'

const baseUrl = ''
export function listCameraDevice(data) {
  return request({
    url: baseUrl + '/camera/device/list',
    method: 'post',
    data
  })
}

export function pageGetCameraDevice(data) {
  return request({
    url: baseUrl + '/camera/device/pageGet',
    method: 'post',
    data
  })
}

export function deleteCameraDevice(data) {
  return request({
    url: baseUrl + '/camera/device/delete',
    method: 'post',
    data
  })
}

export function updateCameraDevice(data) {
  return request({
    url: baseUrl + '/camera/device/update',
    method: 'post',
    data
  })
}

export function insertCameraDevice(data) {
  return request({
    url: baseUrl + '/camera/device/insert',
    method: 'post',
    data
  })
}

export function getCameraDevice(data) {
  return request({
    url: baseUrl + '/camera/device/get',
    method: 'post',
    data
  })
}

export function pushCloud(data) {
  return request({
    url: baseUrl + '/camera/device/pushCloud',
    method: 'post',
    data
  })
}

export function keepPushCloud(data) {
  return request({
    url: baseUrl + '/camera/device/keepPushCloud',
    method: 'post',
    data
  })
}

export function stopCloud(data) {
  return request({
    url: baseUrl + '/camera/device/stopCloud',
    method: 'post',
    data
  })
}

export function controlAction(data) {
  return request({
    url: baseUrl + '/camera/device/controlAction',
    method: 'post',
    data
  })
}

export function snap(data) {
  return request({
    url: baseUrl + '/camera/device/snap',
    method: 'post',
    data
  })
}

